package com.itheimaoa.service.process;

import org.jbpm.api.task.Task;

import com.itheimaoa.domain.customer.Customer;
import com.itheimaoa.domain.process.Apply;
import com.itheimaoa.domain.process.Audition;
import com.itheimaoa.domain.process.Exam;
import com.itheimaoa.domain.process.Qualification;
import com.itheimaoa.domain.process.Resume;
import com.itheimaoa.domain.process.Test;
import com.itheimaoa.service.base.ICommonService;

public interface IApplyService extends ICommonService<Apply> {
	void startApply(Customer customer);

	Apply findApply(String id);

	/**
	 * 我当前的申请
	 * 
	 * @param id
	 * @return
	 */
	Task findTask(String id);

	/**
	 * 自荐信提交
	 * 
	 * @param customer
	 * @param resume
	 */
	void doSubmitResume(Customer customer, Resume resume) throws Exception;
    /**
     * 基础测试提交
     * @param customer
     * @param test
     */
	void doSubmitTest(Customer customer, Test test)throws Exception;
    /**
     * 入学考试资格
     * @param customer
     * @param test
     */
	void doSubmitQualification(Customer customer, Qualification qualification)throws Exception;
    /**
     * 入学考试题
     * @param customer
     * @param exam
     */
	void doSubmitExam(Customer customer, Exam exam) throws Exception;
    /**
     * 面试申请
     * @param customer
     * @param audition
     * @throws Exception 
     */
	void doSubmitAudition(Customer customer, Audition audition) throws Exception;
}
